// import express from 'express';
var express = require('express')
import router from './routes/index.js';
// import cookieParser from 'cookie-parser'
// import connectMongo from 'connect-mongo';
// import winston from 'winston';
// import expressWinston from 'express-winston';
// import path from 'path';
// import chalk from 'chalk';

var app = express();


// app.use(cookieParser());
router(app);

// app.use(express.static('./public'));
app.listen(8001, () => {
	console.log('成功监听端口：8001'
	)
});